﻿<Serializable()> _
Public Class Eempresa

#Region "           Atributos                       "
    Private _idEmpresa As Int32
    Private _descEmpresa As String
    Private _estado As String
    Private _desEstado As String
    Private _idUsuario As Int32
#End Region

#Region "           Propiedades                     "
    Public Property idEmpresa() As Integer
        Get
            Return _idEmpresa
        End Get
        Set(ByVal value As Integer)
            _idEmpresa = value
        End Set
    End Property
    Public Property descEmpresa() As String
        Get
            Return _descEmpresa
        End Get
        Set(ByVal value As String)
            _descEmpresa = value
        End Set
    End Property
    Public Property estado() As String
        Get
            Return _estado
        End Get
        Set(ByVal value As String)
            _estado = value
        End Set
    End Property
    Public Property desEstado() As String
        Get
            Return _desEstado
        End Get
        Set(ByVal value As String)
            _desEstado = value
        End Set
    End Property
    Public Property idUsuario() As Int32
        Get
            Return _idUsuario
        End Get
        Set(ByVal value As Int32)
            _idUsuario = value
        End Set
    End Property
#End Region

#Region "           Propiedades Avanzadas           "

#End Region

#Region "           Contructores                    "
    Public Sub New()

    End Sub
    Public Sub New(ByVal idEmpresa As Int32, ByVal descEmpresa As String)
        Me.idEmpresa = idEmpresa
        Me.descEmpresa = descEmpresa
    End Sub
    Public Sub New(ByVal idEmpresa As Int32, ByVal descEmpresa As String, _
                   ByVal estado As String, ByVal idUsuario As Integer)
        Me.idEmpresa = idEmpresa
        Me.descEmpresa = descEmpresa
        Me.estado = estado
        Me.desEstado = IIf(estado = 1, "HABILITADO", "DESHABILITADO")
        Me.idUsuario = idUsuario
    End Sub
#End Region

End Class
